<script type="text/javascript" src="{$base_media}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="{$base_media}/ckeditor/ckfinder/ckfinder.js"></script>
	<script type="text/javascript" charset="utf-8">
		// tabbed forms box
		$(function () {ldelim}
			var tabContainers = $('div#forms > div.innerContent'); // change div#forms to your new div id (example:div#pages) if you want to use tabs on another page or div.
			tabContainers.hide().filter(':first').show();

			$('ul.switcherTabs a').click(function () {ldelim}
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('ul.switcherTabs li').removeClass('selected');
				$(this).parent().addClass('selected');
				return false;
			{rdelim}).filter(':first').click();
		{rdelim});
</script>

<div id="leftBox">

<div class="{$clsType}Box" style="display:{$msgBoxDisp}">
  <div class="{$clsType}BoxTop">&nbsp;</div>
  	{foreach from=$messages item=arrMsg}
    	{foreach from=$arrMsg item=msg}
    	<div class="msgBoxContent {$clsIcon}">
      	<p>{$msg}</p>
      	</div>
      {/foreach}
    {/foreach}
</div>

<form id="mainForm" name="mainForm" method="post" action="{$actionForm}">
<div class="contentBox" id="forms">
  <div class="contentBoxTop">
    <h3>##MANAGEMENT## Ngôn ngữ</h3>
    <ul class="switcherTabs">
    {foreach item=arrLang from=$langList}
    	{if $arrLang.default eq 1}
      	<li class="selected"><a href="#box-{$arrLang.id}">{$arrLang.name}</a></li>
      {else}
      	<li><a href="#box-{$arrLang.id}">{$arrLang.name}</a></li>
      {/if}
    {/foreach}
    </ul>
  </div>

  {foreach item=arrLang from=$langList}
      <div class="innerContent" id="box-{$arrLang.id}">

          <p>##CONTAINT## Ngôn ngữ<br>
          <label>
          	<textarea name="CONTAINT[{$arrLang.id}]" id="CONTAINT{$arrLang.id}">{$arrLang.containt|escape}</textarea>
          </label>
          </p>
          <p>
            <input name="" type="image" src="{$base_media}/images/bt_submit.gif" onclick="return checkForm();" />
          </p>

      </div>
  {/foreach}

</div>
<input type="hidden" name="id" id="id" value="{$id}"/>
</form>
</div>
<script type="text/javascript">
    {foreach item=arrLang from=$langList}
        /* For textarea introdue */
        var intro = CKEDITOR.replace('CONTAINT{$arrLang.id}', {ldelim}
					toolbar : [
								['Source', '-','Bold', 'Italic','Underline', 'Strike', '-',
								 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-',
								 'NumberedList','BulletedList', '-',
								 'Undo', 'Redo', '-',
								 'Link','Unlink','-',
								 'Font'
								]
							  ]
					{rdelim});
        //CKFinder.SetupCKEditor( intro ) ;
    {/foreach}
</script>
<!-- end of #sidebar -->